package com.itfitness.lifecycledemo;

import android.app.Application;

import androidx.lifecycle.ProcessLifecycleOwner;

/**
 * @ProjectName: LifeCycleDemo
 * @Package: com.itfitness.lifecycledemo
 * @ClassName: MyApplication
 * @Description: java类作用描述
 * @Author: 作者名
 * @CreateDate: 2021/9/14 21:03
 * @UpdateUser: 更新者：
 * @UpdateDate: 2021/9/14 21:03
 * @UpdateRemark: 更新说明：
 */
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        ProcessLifecycleOwner.get().getLifecycle().addObserver(new MyApplicationObserver());
    }
}
